negotiator.boaframework.opponentmodel.tools
Class UtilitySpaceAdapter

java.lang.Object
  extended by negotiator.utility.UtilitySpace
      extended by negotiator.boaframework.opponentmodel.tools.UtilitySpaceAdapter
All Implemented Interfaces:
java.io.Serializable

public class UtilitySpaceAdapter
extends UtilitySpace

Some opponent models do not use the UtilitySpace-object. Using this object, a UtilitySpace-object can be created for each opponent model.

Author:
Mark Hendrikx
See Also:
Serialized Form

Field Summary
 
Fields inherited from class negotiator.utility.UtilitySpace
domain
 
Constructor Summary
UtilitySpaceAdapter(OpponentModel opponentModel, Domain domain)
           
 
Method Summary
 double getUtility(Bid b)
           
 double getWeight(int i)
           
 
Methods inherited from class negotiator.utility.UtilitySpace
addEvaluator, addEvaluator, checkReadyForNegotiation, DefaultEvaluator, discount, equals, getDiscountFactor, getDomain, getEvaluation, getEvaluator, getEvaluators, getFileName, getIssue, getMaxUtilityBid, getMinUtilityBid, getNrOfEvaluators, getObjective, getReservationValue, getReservationValueUndiscounted, getReservationValueWithDiscount, getReservationValueWithDiscount, getUtilityWithDiscount, getUtilityWithDiscount, getXMLRoot, IsComplete, isDiscounted, lock, normalizeChildren, normalizeWeights, removeEvaluator, setDiscount, setReservationValue, setWeight, setWeightSimple, toString, toXML, unlock
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UtilitySpaceAdapter

public UtilitySpaceAdapter(OpponentModel opponentModel,
                           Domain domain)
Method Detail

getUtility

public double getUtility(Bid b)
Overrides:
getUtility in class UtilitySpace
Parameters:
b - of which we are interested in its utility.
Returns:
undiscounted utility of the given bid.

getWeight

public double getWeight(int i)
Overrides:
getWeight in class UtilitySpace
Parameters:
i - The Issue or Objective to get the weight from
Returns:
The weight, or -1 if the objective doesn't exist.